package com.augmentum.oes.model;

import java.io.Serializable;

public class User implements Serializable {

    private static final long serialVersionUID = 4966674501847118514L;

    private int id;
    private String userName;
    private String password;
    private String chineseName;
    private String gender;
    private Role role;
    private String telephoneNumber;
    private String email;
    private String photoPath;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public String getTelephoneNumber() {
        return telephoneNumber;
    }

    public void setTelephoneNumber(String telephoneNumber) {
        this.telephoneNumber = telephoneNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhotoPath() {
        return photoPath;
    }

    public void setPhotoPath(String photoPath) {
        this.photoPath = photoPath;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("User [id=");
        builder.append(id);
        builder.append(", userName=");
        builder.append(userName);
        builder.append(", password=");
        builder.append(password);
        builder.append(", chineseName=");
        builder.append(chineseName);
        builder.append(", gender=");
        builder.append(gender);
        builder.append(", role=");
        builder.append(role);
        builder.append(", telephoneNumber=");
        builder.append(telephoneNumber);
        builder.append(", email=");
        builder.append(email);
        builder.append("]");
        return builder.toString();
    }




}
